﻿using RockBus.Composition.Interfaces;
using RockBus.Logging.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;

namespace RockBus.Hosting
{
    public class StaticWebServiceHostFactory : WebServiceHostFactory
    {
        protected override ServiceHost CreateServiceHost(Type serviceType, params Uri[] baseAddresses)
        {
            var rsh = new StaticWebServiceHost(DependencyManager.Instance.Resolve<ILogger>(), serviceType, baseAddresses);
            return rsh;
        }
    }
}
